//
//  ConsumeRecord.m
//  fGeekApp
//
//  Created by Administrator on 15/3/9.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "ConsumeRecord.h"

@implementation ConsumeRecord

-(ConsumeRecord *)initConsumeRecordInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.ConsumeRecordID = [[dict valueForKey:@"consume_id"] integerValue];
        self.orderID = [[dict valueForKey:@"order_id"] integerValue];
        self.ConsumeRecordTime = [[dict valueForKey:@"consume_time"] integerValue];
        self.goodsName = [dict valueForKey:@"goods_name"];
        self.goodsPrice = [[dict valueForKey:@"goods_price"] floatValue];
        self.goodsImagePath = [dict valueForKey:@"goods_imagePath"];
        self.goodsContentBody = [dict valueForKey:@"goods_content"];
        self.goodsSaleCount = [[dict valueForKey:@"goods_saleCount"] integerValue];

    }
    
    return self;
}


+(ConsumeRecord *)getConsumeRecordInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initConsumeRecordInstanceByDict:dict];
}


@end
